import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import './cache_image.dart';


class EmptyTip extends StatelessWidget {
    String image;
	String text;
    EmptyTip({Key? key,this.text="",this.image=""}) : super(key: key);

    @override
    Widget build(BuildContext context) {
        return FractionallySizedBox(
            heightFactor: 1,
            child: Column(
                crossAxisAlignment: CrossAxisAlignment.center,
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
					if(image.isNotEmpty)
                    SizedBox(
						child: CacheImage(url: image),
						width: 60.w,
						height: 60.w,
					),
                    SizedBox(height: 10.w),
                    Text(text,style: TextStyle(fontSize: 14.sp,color: const Color(0xff888888),fontWeight: FontWeight.normal),textAlign:TextAlign.center)
                ],
            )
        );
    }
}
